

export default [
    // 消息中心路由
    {
        path: '/message',
        name: 'MessageCenter',
        component: () => import('../../views/message/MessageCenter.vue'),
        children: [
            {
                path: 'like',
                name: 'LikeMessage',
                component: () => import('../../views/message/LikeMessage.vue')
            },
            {
                path: 'comment',
                name: 'CommentMessage',
                component: () => import('../../views/message/CommentMessage.vue')
            },
            {
                path: 'notification',
                name: 'NotificationMessage',
                component: () => import('../../views/message/NotificationMessage.vue')
            },
            {
                path: 'follow',
                name: 'FollowMessage',
                component: () => import('../../views/message/FollowMessage.vue')
            }
        ]
    },

    // 私信路由
    {
        path: '/messages/private',
        name: 'PrivateMessage',
        component: () => import('../../views/message/PrivateMessageLayout.vue'),
        children: [
            {
                path: ':senderId',
                name: 'PrivateMessageDetail',
                component: () => import('../../views/message/PrivateMessageDetail.vue'),
                props: true
            }
        ]
    }
];